package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.QuestionTypeService;
import com.it.park.dao.QuestionTypeMapper;
import com.it.park.model.QuestionType;

@Service("questionTypeService")
public class QuestionTypeServiceImpl extends BaseServiceImpl<QuestionType> implements QuestionTypeService {
	
	@Autowired
	private QuestionTypeMapper questionTypeMapper;

	@Override
	public boolean insert(QuestionType record) {
		return questionTypeMapper.insert(record)==1 ;
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return questionTypeMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(QuestionType record) {
		return questionTypeMapper.insertSelective(record)==1;
	}
	@Override
	public QuestionType selectByPrimaryKey(Integer id) {
		return questionTypeMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(QuestionType record) {
		return questionTypeMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(QuestionType record) {
		return questionTypeMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<QuestionType> selectAll() {
		return questionTypeMapper.selectAll();
	}
	@Override
	public List<QuestionType> selectPagination(Map<String, Object> map) {
		return questionTypeMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return questionTypeMapper.selectTotal(map);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(QuestionType record) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<QuestionType> selectPagination(QuestionType t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(QuestionType t) {
		// TODO Auto-generated method stub
		return null;
	}

}
